#ifndef TRAYICON_H
#define TRAYICON_H

#include <wx/taskbar.h>

class MainFrame;

class TaskBarIcon: public wxTaskBarIcon
{

private:
    MainFrame* m_MainFrame;

	bool online;

	bool newMsg;

public:
    TaskBarIcon(MainFrame* frame);

	void ChagneIcon();

	void SwitchIconForNewMessage();

	bool ShowNewMsg(){return newMsg;}

private:
    void OnLeftDClick(wxTaskBarIconEvent&);
    void OnSignIn(wxCommandEvent&);
    void OnSignOut(wxCommandEvent&);
    void OnOpen(wxCommandEvent&);
    void OnExit(wxCommandEvent&);
    void OnClose(wxCloseEvent&);


    void OnChangeStatus(wxCommandEvent&);

    virtual wxMenu *CreatePopupMenu();

    void ShowFrame();
    void HideFrame();



DECLARE_EVENT_TABLE()
};

#endif
